<?php 
class almacenesArticulosController extends AppController{
    var $name = 'almacenesArticulos';
    
    
    function getAlmacenesArticulo(){
        $articulo = empty($this->params['url']['articulo'])?"0":$this->params['url']['articulo'];
        echo json_encode($this->AlmacenesArticulo->getAlmacenArticulo($articulo));
        $this->autoRender = false;
    }
}